package com.study.thisdemo;

/**
 * 目标：认识和理解this关键字
 */
public class Test {
    public static void main(String[] args) {
        Animal dog = new Animal();
        dog.run();
        System.out.println(dog);

        Animal cat = new Animal("猫",3);
        cat.run();
        System.out.println(cat);

        cat.goWith("狗");
    }
}
